GetMenuItemTextEncoding
NEW WITH THE APPEARANCE MANAGER
Gets the text encoding used for a menu item's text.
pascal OSErr GetMenuItemTextEncoding ( MenuHandle inMenu, SInt16 inItem, TextEncoding* outScriptID);
inMenu
- The handle to the menu structure of the menu item whose text encoding you wish to get.
inItem
- An integer representing the item number of the menu item whose text encoding you wish to get.
outScriptID
- On output, a pointer to the script code of the text encoding used in the menu item's text.
- function result
- A result code; see "Result Codes".
DISCUSSION
If a menu item has a command code of 0x1C whenGetMenuItemTextEncoding
is called,GetMenuItemTextEncoding
gets the value in the icon field of the menu item's menu resource.SEE ALSO
"Appearance Manager Gestalt Selector Constants".